package cn.tedu;

import java.sql.SQLOutput;
import java.util.Scanner;

/*本类用于综合系统编写--广告*/
public class advertising {
    public static void main(String[] args) {
        while(true) {
            Hierarchy h =new Hierarchy();
            Primary p = new Primary();
            p.setTreatment("五险");
            p.setPay(10000);
            Intermediate i = new Intermediate();
            i.setTreatment("五险一金");
            i.setPay(15000);
            Advanced a = new Advanced();
            a.setPay(20000);
            a.setTreatment("五险两金");
            zodiac z = new zodiac();
            z.year();
            Java j = new Java("后端视频", 120);
            Python y = new Python("爬虫视频", 150);
            Wed w = new Wed("前端视频", 60);

            System.out.println("请输入你擅长的领域(Java  Python  Wed):");
            String territory = new Scanner(System.in).next();
            if (territory.equals("Java")) {
                j.Catalogue();
            }else if(territory.equals( "Python")){
                y.Catalogue();
            }else if(territory.equals("Wed")){
                w.Catalogue();
            }
            System.out.println("请输入你的学历(大专  本科  研究生):");
            String degree = new Scanner(System.in).nextLine();
            switch (degree) {
                case "研究生":
                    a.cost();
                    a.course();
                    a.hour();
                    System.out.println("待遇:" + a.getTreatment());
                    System.out.println("薪资:" + a.getPay());
                    break;
                case "本科":
                    i.cost();
                    i.course();
                    i.hour();
                    System.out.println("待遇:" + i.getTreatment());
                    System.out.println("薪资:" + i.getPay());
                    break;
                case "大专":
                    p.cost();
                    p.course();
                    p.hour();
                    System.out.println("待遇:" + p.getTreatment());
                    System.out.println("薪资:" + p.getPay());
                    break;
            }
        }

    }
}
